package com.taxsearch.service.linsa;

import java.util.HashMap;
import java.util.List;
import javax.annotation.Resource;

import com.taxsearch.dao.linsa.BookRoomMapper;
import org.springframework.stereotype.Service;

@Service
public class BookRoomService {
	@Resource
	private BookRoomMapper bookRoomMapper;
	
	//插入预订房间信息
	public int insertBookRoom(HashMap<String,Object> map){
		return bookRoomMapper.insertBookRoom(map);
	}
	
	//取消预定
	public int deleteBookRoom(HashMap<String,Object> map){
		return bookRoomMapper.deleteBookRoom(map);
	}
	
	//查询预订列表
	public List<HashMap<String,String>> selectBookList(HashMap<String,Object> map){
		return bookRoomMapper.selectBookList(map);
	}
	
	//查询预订详情
	public List<HashMap<String,String>> selectBookDetail(HashMap<String,Object> map){
		return bookRoomMapper.selectBookDetail(map);
	}
	
}
